package com.framework.loippi.entity;

import com.framework.loippi.mybatis.eitity.GenericEntity;
import com.framework.loippi.mybatis.ext.annotation.Column;
import com.framework.loippi.mybatis.ext.annotation.Table;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Entity - 药品属性表
 * 
 * @author wmj
 * @version 2.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_MEDICINE_ATTRIBUTE")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) 
@ApiModel(value="药品属性表",description="药品属性表")
public class Attribute implements GenericEntity {

	private static final long serialVersionUID = 5081846432919091193L;

	/** ID */
	@Column(id = true, name = "id", updatable = false)
	@ApiModelProperty(value = "ID")
	private Long id;
	
	/** 药品ID */
	@Column(name = "medicine_id" )
	@ApiModelProperty(value = "药品ID")
	private Long medicineId;
	
	/** 属性ID */
	@Column(name = "attribute_id" )
	@ApiModelProperty(value = "属性ID")
	private Long attributeId;
	
	/** 属性名称 */
	@Column(name = "attribute_name" )
	@ApiModelProperty(value = "属性名称")
	private String attributeName;
	
	/** 属性值ID */
	@Column(name = "attribute_value_id" )
	@ApiModelProperty(value = "属性值ID")
	private Long attributeValueId;
	
	/** 属性值名称 */
	@Column(name = "attribute_value_name" )
	@ApiModelProperty(value = "属性值名称")
	private String attributeValueName;
	
	/** 创建时间 */
	@Column(name = "create_time" )
	@ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	
	/** 类型(0-普通药品) */
	@Column(name = "type" )
	@ApiModelProperty(value = "类型(0-普通药品)")
	private Integer type;
	
}
